<?php
App::uses('AppModel', 'Model');
/**
 * DetallePia Model
 *
 * @property Pia $Pia
 * @property Clasificador $Clasificador
 */
class DetallePia extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Pia' => array(
			'className' => 'Pia',
			'foreignKey' => 'pia_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Clasificador' => array(
			'className' => 'Clasificador',
			'foreignKey' => 'clasificador_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
	public $virtualFields = array(
    	'subtotal' => 'ene+feb+mar+abr+may+jun+jul+ago+sep+oct+nov+dic'
	);
}
